# 创建一个只包含一个元素的元组,注意一定要添加,
my_tuple=(1,)
# print(my_tuple)

my_tuple2=(1,2,3,'a','b','c')
# print(my_tuple2[0:2])
# 打印元组最后一个元素
# print(my_tuple2[-1])

# for item in my_tuple2:
#     print(item)

# for i in range(len(my_tuple2)):
#     print(my_tuple2[i])

# repeat_tuple=my_tuple2*2
# print(repeat_tuple)

# item1,item2,item3=my_tuple2[:3]
# print(item1,item2,item3)

item1,*rest=my_tuple2
print(item1,rest)
